package org.example.chapter3;



public class AddFloaterror {
    public static void main(String[] args) {
        double currentValue=0.01;
        double sum=0;
        for(int count=0;count<100;count++){
            sum+=currentValue;
            currentValue+=0.01;
        }
        System.out.println(sum);
         double sum1=0;
        double currentValue1=1;
        for (int conut = 0; conut < 100; conut++) {
            sum1+=currentValue1;
            currentValue1-=0.01;
        }
        System.out.println(sum1);
    }




}
